<script>
function Register()
	{
		var credencials=new Object();
		credencials.module="Workspace.CreateWorkspace";
		credencials.description=$("Description").getValue();
		credencials.name=$("Name").getValue();
		
		new Ajax.Request('Model.php', {
			method: 'post',
			parameters: credencials,
			onSuccess: function(transport){
				var JSONtext = transport.responseText;
				var JSONobject = JSON.parse(JSONtext);
				if(JSONobject['result']==1)
					location="index.php";
				else
					$("warning").update(JSONobject['error']);
			},
			onFailure: function(){
				$("warning").update("Could not connect to server");
			}
		})

	} 

</Script>
<H1>Creating a global Profile</H1>
<p>You can have the same profile at several group of Projects. Example:
<ul>
	<li>You work at IIMSoft( fictional name )</li>
	<li>You work at OpenSource group called Natachios (fictional name)</li>
	<li>etc...</li>
</ul>
You can participate on each other without even to logout.
</p>
<p>You are here since you register in site without invitation of any of this group.
<br>You will now be able to create an individual workspace and invite others works on it.</p>
<table>
	<tr><td>Workspace Name: </td><td><input type="text" id="Name"></td></tr>
	<tr><td>Workspace Description: </td><td><input type="text" id="Description"></td></tr>
	<tr><td colspan="2"><input type="button" id="Name" value="Create Group" onclick="Register()"></td></tr>
</table>

<div id="warning"></div>
